/*Author:S.Genikhov
Creatin Date:
Last modified:11/Sept/2010
Reviewed by :

Version 3 with possiblitiest to : Login,get,Bye and simple Security check.
Support only TCP connection.

Short project description:
Bases reallisation of FTP server command like : cd ,send recieve file and commands,
by using of state machine*/
#ifndef __FTPSERVER__
#define __FTPSERVER__


#define     USERNAMESIZE    (20)

typedef  struct FTPserver_t FTPServ;
/*to load the list of existed users the login file contais the username password pair has to be supplyed as argument.
for exemple to run from command line the executable: './ftpserver login '
WHere is 'login' is the name of txt document contains the user && password information as it shown in example:

user     pass
----------------------------------
serj    abcd
dani    lpds

The user name and password has not to exeed the  USERNAMESIZE. Fail has to be placed in same directory with executable.*/

FTPServ* FTPServerNew(char* _filelogin, int _port);

/*Turns On Sever.
Return 0  if o.k. and err_Gsv if fails*/
int    FTPServerRun(FTPServ* _this);





#endif /* __FTPSERVER__*/
